home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / wb / DosMan121.lha / man / Type < prev    next >
Text File  |  1995-04-04  |  3KB  |  95 lines

  1.  
  2.  
  3.  
  4.      Type (V1.3, 2.x, 3.x in C:) 
  5.  
  6.  
  7.      NAME
  8.             Type - Type a file, possibly with line numbers or in 
  9.         hex.
  10.  
  11.      SYNOPSIS
  12.             Type [FROM] fromname [[TO] toname] 
  13.                  [OPT N=NUMBER / OPT H=HEX] 
  14.  
  15.      DESCRIPTION
  16.             Type displays a file on the current window, or, if a 
  17.         TO argument is supplied, to a file.  With the 2.3/3.x 
  18.         version of Type, you can type many files with one TYPE 
  19.         command, and use wildcards as well.  Note that due to 
  20.         this enhancement of Type it is possible to dispense with 
  21.         Join, since Type can do Join's job as well as its own.
  22.  
  23.             Although you can view a file with Type, you are also 
  24.         able to copy a file with it.  It can format its output as 
  25.         hex number or include line numbers at the beginning of 
  26.         each line.
  27.  
  28.             If you use Type without a filename, it will read from 
  29.         its standard input. This allows you to use Type in a 
  30.         pipeline, or to send keyboard input to a device (such as 
  31.         a printer) or a file. To terminate an interactive session 
  32.         with Type, use Ctrl-\. To pause the output hit the space 
  33.         bar. Resume the output by pressing the Ctrl-x. The output 
  34.         may be cancelled with the Ctrl-C.
  35.  
  36.      OPTIONS
  37.           FROM fromname
  38.             The name of the file you want displayed. Fromname can 
  39.         be any valid Amiga file. The FROM keyword is optional if 
  40.         the fromname immediatly follows the command. 2.x/3.x lets 
  41.         you TYPE many files.
  42.  
  43.             NOTE: ONLY 'OPT N' OR 'OPT H' MAY BE SPECIFIED ONE AT 
  44.         A TIME NOT BOTH AT THE SAME TIME.
  45.  
  46.           HEX or OPT H
  47.                This displays the file(s) in hexadecimal.
  48.  
  49.           NUMBER or OPT N
  50.             This displays the file(s) with line numbers. AmigaDOS 
  51.         will treat any number of characters within a file ending 
  52.         with a linefeed as one line.
  53.  
  54.  
  55.       TO file
  56.             The TO option lets you select a destination file 
  57.         instead of typing to the console.  Note that with the 
  58.         2.x/3.x TYPE, you must explicitly specify the TO keyword, 
  59.         unlike the 1.3 TYPE. Under 2.x/3.x a second filename will 
  60.         be presumed to be another fromname if the TO keyword is 
  61.         not specified. Since 1.3 cannot display multiple files 
  62.         with one TYPE command then the TO keyword isn't needed if 
  63.         the toname directly follows the fromname.
  64.  
  65.             If TO is not specified, the TYPE is output to the 
  66.         screen. toname may be any kind of AmigaDOS file or device 
  67.         (such as prt:). It cannot be a directory, however. If you 
  68.         specify a directory with something in it, TYPE will fail.  
  69.         If toname is an empty directory then the directory will 
  70.         be deleted and replaced with the typed file.
  71.  
  72.      EXAMPLE
  73.         1. To Type a binary file in hex.
  74.  
  75.  
  76.                Type WORK:ThisFile.bin OPT H   
  77.  
  78.  
  79.         2. To Type the contents of a text file to the screen:
  80.  
  81.               
  82.                Type this.txt
  83.  
  84.  
  85.         3. To copy a file named this.txt to another directory:
  86.  
  87.                Type Work:Docs/this.txt Work:MoreDocs/this.txt
  88.  
  89.    
  90.         4. Dump a text file to the printer with line numbers:
  91.  
  92.                Type Work:this.txt to PRT: Opt N
  93.  
  94.  
  95.